package com.satoken.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper {
    @Select("Select role FROM user_role where username = #{username}")
    String getRole(String username);
    @Insert("INSERT INTO user_role VALUES(#{username},#{role_name})")
    int insertRole(String username,String role_name);

}
